import sys
import pyautogui as pg
from time import sleep

COLOR = str(sys.argv[1])

# pg.click(x=30, y=370)

# sleep 1.5s wait for starting application
sleep(1.5)
# move to right split view 
pg.hotkey('alt', 'r')
sleep(0.8)

# click theme
pg.click(x=1400, y=72)
sleep(0.1)

# choose theme
if COLOR == 'dark':
    pg.click(x=1400, y=290) # dark
elif COLOR == 'light':
    pg.click(x=1400, y=255)  # light

# close
pg.click(x=1008, y=42)